consultsuggs.tfilesource file

consultsuggs.t

Version 1.0

Allows a Consultable's ConsultTopics to be suggested. For the list of suggested topics to be displayed you need to give each ConsultTopic to be suggested a name and to call the Consultable's showSuggestions() method at some suitable point in your game code, for example: *. *.
blackBook: Consultable 'big black book' @startroom *.
readDesc()
{
"Ir's a book in which you could look up a variety of topics.<.p>"; *.
showSuggestions();
} *.
; *.
+ ConsultTopic @tCarrots
"They're an orange root vegetable. " *.
name = 'carrots'
; *.
+ ConsultTopic @tTomatoes
"They're a round red fruit, but they're usually used as a vegetable. " *.
name = 'tomatoes'
; *. *.
tCarrots: Topic 'carrots';
tTomatoes: Topic 'tomatoes';

Summary of Classes  

(none)

Summary of Global Objects  

consultableSuggestionLister  enumConsultableSuggestionsPreparser 

Summary of Global Functions  

(none)

Global Functions  

(none)

Adv3Lite Library Reference Manual
Generated on 13/06/2025 from adv3Lite version 2.2.1